//
//  MYGAcademicExpertModel.swift
//  MYDoctor
//
//  Created by 小火科技 on 2024/5/31.
//

import HandyJSON

class MYGAcademicExpertModel: HandyJSON {
    
    var department = ""
    var expertCn = ""
    var expertId = 0
    var expertRoleCn = ""
    var hospital = ""
    var id = 0
    var position = ""
    var speech_id = 0
    var type = 0
    var task_list:[MYGAcademicExpertTaskListModel] = []
    var doctor_id = 0
    var introduction = ""
    var photo = ""
    required init() {
    }
    
}

class MYGAcademicExpertTaskListModel: HandyJSON {
    
    var count = 0
    var day = ""
    var lunar = ""
    var time = ""
    var week = 0
    var year_month = ""
    var session_info:[MYGAcademicExpertSession_infoModel] = []
    var isSelected = false
    
    var weekString:String {
        if week == 1 {
            return "周一"
        }
        if week == 2 {
            return "周二"
        }
        if week == 3 {
            return "周三"
        }
        if week == 4 {
            return "周四"
        }
        if week == 5 {
            return "周五"
        }
        if week == 6 {
            return "周六"
        }
        if week == 7 {
            return "周日"
        }
        return ""
    }
    
    required init() {
    }
    
}

class MYGAcademicExpertSession_infoModel: HandyJSON {
    
    var expertRoleCn = ""
    var roomCn = ""
    var location = ""
    var sessionCn = ""
    var sessionEndTime = ""
    var sessionStartTime = ""
    var sessionTime = ""
    required init() {
        
    }
}
